package com.box.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/***
 *@author java214
 *@site www.java214.com
 *@company 一帆风顺网络科技有限公司
 *@create 2020-02-04 22:38
 *@ClassName ${Name} 
 *@Description TODO
 *@program MyBox
 *
 */
public class DbTemplatesExample {

    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DbTemplatesExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTUrlIsNull() {
            addCriterion("t_url is null");
            return (Criteria) this;
        }

        public Criteria andTUrlIsNotNull() {
            addCriterion("t_url is not null");
            return (Criteria) this;
        }

        public Criteria andTUrlEqualTo(String value) {
            addCriterion("t_url =", value, "tUrl");
            return (Criteria) this;
        }

        public Criteria andTUrlNotEqualTo(String value) {
            addCriterion("t_url <>", value, "tUrl");
            return (Criteria) this;
        }

        public Criteria andTUrlGreaterThan(String value) {
            addCriterion("t_url >", value, "tUrl");
            return (Criteria) this;
        }

        public Criteria andTUrlGreaterThanOrEqualTo(String value) {
            addCriterion("t_url >=", value, "tUrl");
            return (Criteria) this;
        }

        public Criteria andTUrlLessThan(String value) {
            addCriterion("t_url <", value, "tUrl");
            return (Criteria) this;
        }

        public Criteria andTUrlLessThanOrEqualTo(String value) {
            addCriterion("t_url <=", value, "tUrl");
            return (Criteria) this;
        }

        public Criteria andTUrlLike(String value) {
            addCriterion("t_url like", value, "tUrl");
            return (Criteria) this;
        }

        public Criteria andTUrlNotLike(String value) {
            addCriterion("t_url not like", value, "tUrl");
            return (Criteria) this;
        }

        public Criteria andTUrlIn(List<String> values) {
            addCriterion("t_url in", values, "tUrl");
            return (Criteria) this;
        }

        public Criteria andTUrlNotIn(List<String> values) {
            addCriterion("t_url not in", values, "tUrl");
            return (Criteria) this;
        }

        public Criteria andTUrlBetween(String value1, String value2) {
            addCriterion("t_url between", value1, value2, "tUrl");
            return (Criteria) this;
        }

        public Criteria andTUrlNotBetween(String value1, String value2) {
            addCriterion("t_url not between", value1, value2, "tUrl");
            return (Criteria) this;
        }

        public Criteria andTImageUrlIsNull() {
            addCriterion("t_image_url is null");
            return (Criteria) this;
        }

        public Criteria andTImageUrlIsNotNull() {
            addCriterion("t_image_url is not null");
            return (Criteria) this;
        }

        public Criteria andTImageUrlEqualTo(String value) {
            addCriterion("t_image_url =", value, "tImageUrl");
            return (Criteria) this;
        }

        public Criteria andTImageUrlNotEqualTo(String value) {
            addCriterion("t_image_url <>", value, "tImageUrl");
            return (Criteria) this;
        }

        public Criteria andTImageUrlGreaterThan(String value) {
            addCriterion("t_image_url >", value, "tImageUrl");
            return (Criteria) this;
        }

        public Criteria andTImageUrlGreaterThanOrEqualTo(String value) {
            addCriterion("t_image_url >=", value, "tImageUrl");
            return (Criteria) this;
        }

        public Criteria andTImageUrlLessThan(String value) {
            addCriterion("t_image_url <", value, "tImageUrl");
            return (Criteria) this;
        }

        public Criteria andTImageUrlLessThanOrEqualTo(String value) {
            addCriterion("t_image_url <=", value, "tImageUrl");
            return (Criteria) this;
        }

        public Criteria andTImageUrlLike(String value) {
            addCriterion("t_image_url like", value, "tImageUrl");
            return (Criteria) this;
        }

        public Criteria andTImageUrlNotLike(String value) {
            addCriterion("t_image_url not like", value, "tImageUrl");
            return (Criteria) this;
        }

        public Criteria andTImageUrlIn(List<String> values) {
            addCriterion("t_image_url in", values, "tImageUrl");
            return (Criteria) this;
        }

        public Criteria andTImageUrlNotIn(List<String> values) {
            addCriterion("t_image_url not in", values, "tImageUrl");
            return (Criteria) this;
        }

        public Criteria andTImageUrlBetween(String value1, String value2) {
            addCriterion("t_image_url between", value1, value2, "tImageUrl");
            return (Criteria) this;
        }

        public Criteria andTImageUrlNotBetween(String value1, String value2) {
            addCriterion("t_image_url not between", value1, value2, "tImageUrl");
            return (Criteria) this;
        }

        public Criteria andTTitleIsNull() {
            addCriterion("t_title is null");
            return (Criteria) this;
        }

        public Criteria andTTitleIsNotNull() {
            addCriterion("t_title is not null");
            return (Criteria) this;
        }

        public Criteria andTTitleEqualTo(String value) {
            addCriterion("t_title =", value, "tTitle");
            return (Criteria) this;
        }

        public Criteria andTTitleNotEqualTo(String value) {
            addCriterion("t_title <>", value, "tTitle");
            return (Criteria) this;
        }

        public Criteria andTTitleGreaterThan(String value) {
            addCriterion("t_title >", value, "tTitle");
            return (Criteria) this;
        }

        public Criteria andTTitleGreaterThanOrEqualTo(String value) {
            addCriterion("t_title >=", value, "tTitle");
            return (Criteria) this;
        }

        public Criteria andTTitleLessThan(String value) {
            addCriterion("t_title <", value, "tTitle");
            return (Criteria) this;
        }

        public Criteria andTTitleLessThanOrEqualTo(String value) {
            addCriterion("t_title <=", value, "tTitle");
            return (Criteria) this;
        }

        public Criteria andTTitleLike(String value) {
            addCriterion("t_title like", value, "tTitle");
            return (Criteria) this;
        }

        public Criteria andTTitleNotLike(String value) {
            addCriterion("t_title not like", value, "tTitle");
            return (Criteria) this;
        }

        public Criteria andTTitleIn(List<String> values) {
            addCriterion("t_title in", values, "tTitle");
            return (Criteria) this;
        }

        public Criteria andTTitleNotIn(List<String> values) {
            addCriterion("t_title not in", values, "tTitle");
            return (Criteria) this;
        }

        public Criteria andTTitleBetween(String value1, String value2) {
            addCriterion("t_title between", value1, value2, "tTitle");
            return (Criteria) this;
        }

        public Criteria andTTitleNotBetween(String value1, String value2) {
            addCriterion("t_title not between", value1, value2, "tTitle");
            return (Criteria) this;
        }

        public Criteria andTInfoIsNull() {
            addCriterion("t_info is null");
            return (Criteria) this;
        }

        public Criteria andTInfoIsNotNull() {
            addCriterion("t_info is not null");
            return (Criteria) this;
        }

        public Criteria andTInfoEqualTo(String value) {
            addCriterion("t_info =", value, "tInfo");
            return (Criteria) this;
        }

        public Criteria andTInfoNotEqualTo(String value) {
            addCriterion("t_info <>", value, "tInfo");
            return (Criteria) this;
        }

        public Criteria andTInfoGreaterThan(String value) {
            addCriterion("t_info >", value, "tInfo");
            return (Criteria) this;
        }

        public Criteria andTInfoGreaterThanOrEqualTo(String value) {
            addCriterion("t_info >=", value, "tInfo");
            return (Criteria) this;
        }

        public Criteria andTInfoLessThan(String value) {
            addCriterion("t_info <", value, "tInfo");
            return (Criteria) this;
        }

        public Criteria andTInfoLessThanOrEqualTo(String value) {
            addCriterion("t_info <=", value, "tInfo");
            return (Criteria) this;
        }

        public Criteria andTInfoLike(String value) {
            addCriterion("t_info like", value, "tInfo");
            return (Criteria) this;
        }

        public Criteria andTInfoNotLike(String value) {
            addCriterion("t_info not like", value, "tInfo");
            return (Criteria) this;
        }

        public Criteria andTInfoIn(List<String> values) {
            addCriterion("t_info in", values, "tInfo");
            return (Criteria) this;
        }

        public Criteria andTInfoNotIn(List<String> values) {
            addCriterion("t_info not in", values, "tInfo");
            return (Criteria) this;
        }

        public Criteria andTInfoBetween(String value1, String value2) {
            addCriterion("t_info between", value1, value2, "tInfo");
            return (Criteria) this;
        }

        public Criteria andTInfoNotBetween(String value1, String value2) {
            addCriterion("t_info not between", value1, value2, "tInfo");
            return (Criteria) this;
        }

        public Criteria andTStarIsNull() {
            addCriterion("t_star is null");
            return (Criteria) this;
        }

        public Criteria andTStarIsNotNull() {
            addCriterion("t_star is not null");
            return (Criteria) this;
        }

        public Criteria andTStarEqualTo(Integer value) {
            addCriterion("t_star =", value, "tStar");
            return (Criteria) this;
        }

        public Criteria andTStarNotEqualTo(Integer value) {
            addCriterion("t_star <>", value, "tStar");
            return (Criteria) this;
        }

        public Criteria andTStarGreaterThan(Integer value) {
            addCriterion("t_star >", value, "tStar");
            return (Criteria) this;
        }

        public Criteria andTStarGreaterThanOrEqualTo(Integer value) {
            addCriterion("t_star >=", value, "tStar");
            return (Criteria) this;
        }

        public Criteria andTStarLessThan(Integer value) {
            addCriterion("t_star <", value, "tStar");
            return (Criteria) this;
        }

        public Criteria andTStarLessThanOrEqualTo(Integer value) {
            addCriterion("t_star <=", value, "tStar");
            return (Criteria) this;
        }

        public Criteria andTStarIn(List<Integer> values) {
            addCriterion("t_star in", values, "tStar");
            return (Criteria) this;
        }

        public Criteria andTStarNotIn(List<Integer> values) {
            addCriterion("t_star not in", values, "tStar");
            return (Criteria) this;
        }

        public Criteria andTStarBetween(Integer value1, Integer value2) {
            addCriterion("t_star between", value1, value2, "tStar");
            return (Criteria) this;
        }

        public Criteria andTStarNotBetween(Integer value1, Integer value2) {
            addCriterion("t_star not between", value1, value2, "tStar");
            return (Criteria) this;
        }

        public Criteria andTOnlineUrlIsNull() {
            addCriterion("t_online_url is null");
            return (Criteria) this;
        }

        public Criteria andTOnlineUrlIsNotNull() {
            addCriterion("t_online_url is not null");
            return (Criteria) this;
        }

        public Criteria andTOnlineUrlEqualTo(String value) {
            addCriterion("t_online_url =", value, "tOnlineUrl");
            return (Criteria) this;
        }

        public Criteria andTOnlineUrlNotEqualTo(String value) {
            addCriterion("t_online_url <>", value, "tOnlineUrl");
            return (Criteria) this;
        }

        public Criteria andTOnlineUrlGreaterThan(String value) {
            addCriterion("t_online_url >", value, "tOnlineUrl");
            return (Criteria) this;
        }

        public Criteria andTOnlineUrlGreaterThanOrEqualTo(String value) {
            addCriterion("t_online_url >=", value, "tOnlineUrl");
            return (Criteria) this;
        }

        public Criteria andTOnlineUrlLessThan(String value) {
            addCriterion("t_online_url <", value, "tOnlineUrl");
            return (Criteria) this;
        }

        public Criteria andTOnlineUrlLessThanOrEqualTo(String value) {
            addCriterion("t_online_url <=", value, "tOnlineUrl");
            return (Criteria) this;
        }

        public Criteria andTOnlineUrlLike(String value) {
            addCriterion("t_online_url like", value, "tOnlineUrl");
            return (Criteria) this;
        }

        public Criteria andTOnlineUrlNotLike(String value) {
            addCriterion("t_online_url not like", value, "tOnlineUrl");
            return (Criteria) this;
        }

        public Criteria andTOnlineUrlIn(List<String> values) {
            addCriterion("t_online_url in", values, "tOnlineUrl");
            return (Criteria) this;
        }

        public Criteria andTOnlineUrlNotIn(List<String> values) {
            addCriterion("t_online_url not in", values, "tOnlineUrl");
            return (Criteria) this;
        }

        public Criteria andTOnlineUrlBetween(String value1, String value2) {
            addCriterion("t_online_url between", value1, value2, "tOnlineUrl");
            return (Criteria) this;
        }

        public Criteria andTOnlineUrlNotBetween(String value1, String value2) {
            addCriterion("t_online_url not between", value1, value2, "tOnlineUrl");
            return (Criteria) this;
        }

        public Criteria andTWxPhotoIsNull() {
            addCriterion("t_wx_photo is null");
            return (Criteria) this;
        }

        public Criteria andTWxPhotoIsNotNull() {
            addCriterion("t_wx_photo is not null");
            return (Criteria) this;
        }

        public Criteria andTWxPhotoEqualTo(String value) {
            addCriterion("t_wx_photo =", value, "tWxPhoto");
            return (Criteria) this;
        }

        public Criteria andTWxPhotoNotEqualTo(String value) {
            addCriterion("t_wx_photo <>", value, "tWxPhoto");
            return (Criteria) this;
        }

        public Criteria andTWxPhotoGreaterThan(String value) {
            addCriterion("t_wx_photo >", value, "tWxPhoto");
            return (Criteria) this;
        }

        public Criteria andTWxPhotoGreaterThanOrEqualTo(String value) {
            addCriterion("t_wx_photo >=", value, "tWxPhoto");
            return (Criteria) this;
        }

        public Criteria andTWxPhotoLessThan(String value) {
            addCriterion("t_wx_photo <", value, "tWxPhoto");
            return (Criteria) this;
        }

        public Criteria andTWxPhotoLessThanOrEqualTo(String value) {
            addCriterion("t_wx_photo <=", value, "tWxPhoto");
            return (Criteria) this;
        }

        public Criteria andTWxPhotoLike(String value) {
            addCriterion("t_wx_photo like", value, "tWxPhoto");
            return (Criteria) this;
        }

        public Criteria andTWxPhotoNotLike(String value) {
            addCriterion("t_wx_photo not like", value, "tWxPhoto");
            return (Criteria) this;
        }

        public Criteria andTWxPhotoIn(List<String> values) {
            addCriterion("t_wx_photo in", values, "tWxPhoto");
            return (Criteria) this;
        }

        public Criteria andTWxPhotoNotIn(List<String> values) {
            addCriterion("t_wx_photo not in", values, "tWxPhoto");
            return (Criteria) this;
        }

        public Criteria andTWxPhotoBetween(String value1, String value2) {
            addCriterion("t_wx_photo between", value1, value2, "tWxPhoto");
            return (Criteria) this;
        }

        public Criteria andTWxPhotoNotBetween(String value1, String value2) {
            addCriterion("t_wx_photo not between", value1, value2, "tWxPhoto");
            return (Criteria) this;
        }

        public Criteria andTCreatetimeIsNull() {
            addCriterion("t_createTime is null");
            return (Criteria) this;
        }

        public Criteria andTCreatetimeIsNotNull() {
            addCriterion("t_createTime is not null");
            return (Criteria) this;
        }

        public Criteria andTCreatetimeEqualTo(Date value) {
            addCriterion("t_createTime =", value, "tCreatetime");
            return (Criteria) this;
        }

        public Criteria andTCreatetimeNotEqualTo(Date value) {
            addCriterion("t_createTime <>", value, "tCreatetime");
            return (Criteria) this;
        }

        public Criteria andTCreatetimeGreaterThan(Date value) {
            addCriterion("t_createTime >", value, "tCreatetime");
            return (Criteria) this;
        }

        public Criteria andTCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("t_createTime >=", value, "tCreatetime");
            return (Criteria) this;
        }

        public Criteria andTCreatetimeLessThan(Date value) {
            addCriterion("t_createTime <", value, "tCreatetime");
            return (Criteria) this;
        }

        public Criteria andTCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("t_createTime <=", value, "tCreatetime");
            return (Criteria) this;
        }

        public Criteria andTCreatetimeIn(List<Date> values) {
            addCriterion("t_createTime in", values, "tCreatetime");
            return (Criteria) this;
        }

        public Criteria andTCreatetimeNotIn(List<Date> values) {
            addCriterion("t_createTime not in", values, "tCreatetime");
            return (Criteria) this;
        }

        public Criteria andTCreatetimeBetween(Date value1, Date value2) {
            addCriterion("t_createTime between", value1, value2, "tCreatetime");
            return (Criteria) this;
        }

        public Criteria andTCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("t_createTime not between", value1, value2, "tCreatetime");
            return (Criteria) this;
        }

        public Criteria andTUpdatetimeIsNull() {
            addCriterion("t_updateTime is null");
            return (Criteria) this;
        }

        public Criteria andTUpdatetimeIsNotNull() {
            addCriterion("t_updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andTUpdatetimeEqualTo(Date value) {
            addCriterion("t_updateTime =", value, "tUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTUpdatetimeNotEqualTo(Date value) {
            addCriterion("t_updateTime <>", value, "tUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTUpdatetimeGreaterThan(Date value) {
            addCriterion("t_updateTime >", value, "tUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("t_updateTime >=", value, "tUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTUpdatetimeLessThan(Date value) {
            addCriterion("t_updateTime <", value, "tUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("t_updateTime <=", value, "tUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTUpdatetimeIn(List<Date> values) {
            addCriterion("t_updateTime in", values, "tUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTUpdatetimeNotIn(List<Date> values) {
            addCriterion("t_updateTime not in", values, "tUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("t_updateTime between", value1, value2, "tUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("t_updateTime not between", value1, value2, "tUpdatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
